{% extends "base.html" %}

{% block content %}
<div class="panel-heading">
	<div class="panel-title">订单列表</div>
</div>
<div  class="panel-body">

<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
	<thead>
	<tr>
		<th>订单号</th>
		<th>联系人</th>
		<th>负责人</th>
		<th>预付款</th>
		<th>状态</th>
	</tr>
	</thead>
	<tbody  >

    {% if order_list %}
	{% for order in order_list %}
		<tr class="odd gradeX">
		<td><a href=/detail/?id={{ order.orderID }}>{{ order.orderID }}</a></td>
		<td>{{ order.client.name }}</td>
		<td>{{ order.saleman.name }}</td>
		<td>{{ order.advancePay }}</td>
		<td class="center"> {{ order.status.name }}</td>

		</tr>
    {% endfor %}

   {% else %}
     <p>没有符合条件的订单</p>
   {% endif %}

	</tbody>
</table>

</div>

{% endblock %}